# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo1116
# Description:
# Author:       $赵怡蕾
# Date:         2019/4/3
#-------------------------------------------------------------------------------

import re

s = 'a+b+c+'
strlist = ['abc','aabc','bbac','aabbccddeeff']

for v in strlist:
    m = re.match(s,v)
    if m is not None:
        print(m.group())
    else:
        print('{}不匹配'.format(v))

print('------------------')

s = '\d{3}-[a-z|A-Z]{3}'
strlist = [
    '123-abc',
    '432-xyz',
    '678-AgH'
]
for v in strlist:
    m = re.match(s,v)
    if m is not None:
        print(m.group())
    else:
        print('{}不匹配'.format(v))